package com.clwl.supervise.superviseapp.util;


import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class CompanyProcessUtil {



    public static List<String> getUserProcessList() {
        List<String> processList = new ArrayList<>();
        if(UserHelper.getUserInfo().getBusinessFormatRange() != null){
            String[] rangeList = UserHelper.getUserInfo().getBusinessFormatRange().split(",");
            for (String range : rangeList) {
                processList.add(CompanyProcessUtil.processList(range));
            }
        }
        return processList;
    }

    public static  String processList(String key){
        Map<String,String> map = new HashMap<>();
        map.put("1", "'spxs','cyfw'");
        map.put("2", "'spsc'");
        map.put("3", "'tssc'");
        return map.get(key);
    }
}
